package com.patrick.open.api.core.swagger;

import com.google.common.collect.Lists;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author patrick
 * @date 2020/5/28 2:58 下午
 * @Des swagger配置
 * 最簡單的事是堅持，最難的事還是堅持
 */

@ConfigurationProperties(prefix = "openapi.swagger2")
@Data
public class OpenSwaggerManager {
  /**
   * 是否启用swagger
   */
  private boolean enabled;
  /**
   * 文档标题
   */
  private String title;
  /**
   * 文档描述
   */
  private String description;
  /**
   * 客户端ID
   */
  private String clientId;
  /**
   * 客户端密钥
   */
  private String clientSecret;
  /**
   * 客户端授权范围
   */
  private String scope;
  /**
   * 获取token
   */
  private String accessTokenUri;
  /**
   * 认证地址
   */
  private String userAuthorizationUri;

  private List<String> ignores = Lists.newArrayList();
}
